package com.v5.java.proxy.datasource;

import java.sql.Connection;

public class TestDataSource {

	public static void main(String[] args) throws Exception {
		// 测试连接池
		MyDataSourcePool ds = new MyDataSourcePool();

		//取出链接使用
		for(int i=0; i<11;i++){
			Connection conn = ds.getConnection();
			
			System.out.println("第"+i+"个链接：" + conn);
			
			//关闭connection
			conn.close();
		}
	}

}
